package com.daxia.ogmall.dto;

import java.util.ArrayList;
import java.util.List;

import org.apache.commons.lang3.StringUtils;

import com.daxia.ogmall.model.ProductCategoryTag;

public class ProductCategoryTagDTO extends ProductCategoryTag {
	private Long relatedProductCategoryid;
	private List<String> valueList = new ArrayList<String>();
	private List<BrandDTO> brands = new ArrayList<BrandDTO>();
	public Long getRelatedProductCategoryid() {
		return relatedProductCategoryid;
	}

	public void setRelatedProductCategoryid(Long relatedProductCategoryid) {
		this.relatedProductCategoryid = relatedProductCategoryid;
	}

	public List<String> getValueList() {
		if (StringUtils.isNotBlank(getValues())) {
			String[] arr = getValues().split(",");
			for (String string : arr) {
				valueList.add(string);
			}
		}
		return valueList;
	}

	public void setValueList(List<String> valueList) {
		this.valueList = valueList;
	}

	public List<BrandDTO> getBrands() {
		return brands;
	}

	public void setBrands(List<BrandDTO> brands) {
		this.brands = brands;
	}
	
}
